<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
        <title>MIDB System</title>

        <link rel="shortcut icon" href="images/global/logo.ico" />
        <link href="css/import.css" rel="stylesheet" type="text/css" charset="UTF-8" />
        <script src="scripts/plugins/doT/doT.min.js"></script>
        <script src="scripts/menu.json"></script>
        <script data-main="scripts/main" src="scripts/plugins/requirejs/require.js"></script>
    </head>
    <body>
        <div class="bg_wrap">
            <div class="main_content" id="main_content">
                <div class="header_wrap">
                    <div class="header">
                        <div class="user_info_box R">
                            <a href="javascript:void(0);"></a>
                            <ul class="hidden">
                                <li class="user_base_info">基本信息</li>
                                <li class="reset_password">修改密码</li>
                                <li class="logout">退出登录</li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="body_content_wrap">
                    <div class="body_content">
                        <!-- left nav start -->
                        <div class="nav_area">
                            <div class="user_baseinfo_box">
                                <div class="user_icon_box"><img src="images/default_icon.png" alt="用户头像"></div>
                                <div class="user_name_box"><span></span></div>
                            </div>
                            <div class="user_menu_box"></div>
                        </div>
                        <!-- left nav end -->
                        <!-- content start -->
                        <div class="content_area_wrap">
                            <div class="content_area"></div>
                            <div class="pagination">
                                <!-- <div class="R">
                                    <input type="button" name="prePage" value="上一页" />
                                    <select name="pages">
                                        <option value="1">第1页</option>
                                        <option value="2">第2页</option>
                                        <option value="3">第3页</option>
                                    </select>
                                    <input type="button" name="nextPage" value="下一页" />
                                </div> -->
                            </div>
                        </div>
                        <!-- content end -->
                    </div>
                </div>
                <div class="footer">

                </div>
            </div>
        </div>
    </body>
</html>
<!-- 导航区模板 -->
<script id="menu_tmpl" type="text/x-dot-template">
    <ul class="menu_ul">
        {{ for (var i = 0, l = it.c.length; i < l; i++) { }}
            <li class="{{='li_' + it.c[i].l + '_' + i}}" tmpl="{{=it.c[i].tmpl}}" pageTmpl="{{=it.c[i].pageTmpl}}" mid="{{=it.c[i].mid}}" param="">
                <a href="javascript:void(0);">
                    <img src="{{=it.c[i].icon}}" />
                    <span>{{=it.c[i].name}}</span>
                </a>
            </li>
        {{ } }}
    <ul>
</script>
<!-- 分页栏模板 -->
<script id="pagination_tmpl" type="text/x-dot-template">
    <div class="R">
        {{ if(it.curPage > 1) { }}
        <input type="button" name="prePage" class="prePage" value="上一页" />
        {{ } }}
        <select name="jumpToPage">
            {{ for(var i = 0, l = parseInt(it.pages, 10), cur = i+1; i < l; i++) { }}
            <option value="{{=cur}}" selected = {{=it.curPage == cur ? "true" : "false"}}>第{{=cur}}页</option>
            {{ } }}
        </select>
        {{ if(it.curPage < it.pages) { }}
        <input type="button" name="nextPage" class="nextPage" value="下一页" />
        {{ } }}
    </div>
</script>
<!-- 用户基本信息模板 -->
<script id="employer_baseinfo_tmpl" type="text/x-dot-template">
    <fieldset class="base_info_box">
        <legend>基本信息</legend>
        <form name="user_info">
        <ul class="base_info_ul">
            <li>
                <label for="username" class="base_info_box_title">用户名:</label>
                <input type="text" class="base_info_input" name="user_name" value="{{=it.user_name}}" />
            </li>
            <li>
                <label for="nickname" class="base_info_box_title">昵称:</label>
                <input type="text" class="base_info_input" name="nick_name" value="{{=it.nick_name}}" />
            </li>
            <li>
                <label for="address" class="base_info_box_title">所在地:</label>
                <input type="text" class="base_info_input" name="address" value="{{=it.address}}" />
            </li>
            <li>
                <label for="email" class="base_info_box_title">联系邮箱:</label>
                <input type="text" class="base_info_input" name="email" value="{{=it.email}}" />
            </li>
            <li>
                <label for="phone" class="base_info_box_title">电话:</label>
                <input type="text" class="base_info_input" name="phone" value="{{=it.phone}}" />
            </li>
            <li>
                <label for="desc" class="base_info_box_title">简介:</label>
                <textarea class="base_info_textarea" name="desc">{{=it.desc}}</textarea>
            </li>
            <li>
                <label for="saveUserInfo" class="base_info_box_title"></label>
                <input type="hidden" name="user_code" value="{{=it.user_code}}" />
                <input type="button" class="saveUserInfo" name="saveUserInfo" value="保存" />
            </li>
        </ul>
        </form>
    </fieldset>
</script>
<!-- 任务box模板 -->
<script id="mission_tmpl" type="text/x-dot-template">
    <div class="mission_box">
        <div><span class="mission_box_title">任务名称:</span><span class="mission_data_1">{{=it.m_name}}</span></div>
        <div><span class="mission_box_title">结束时间:</span><span class="mission_data_1">{{=it.m_end_date}}</span></div>
        <div><span class="mission_box_title">结束进度:</span><span class="mission_data_1">{{=it.status}}</span></div>
        <div><span class="mission_box_title">任务描述:</span><p class="mission_data_2">{{=it.m_desc}}</p></div>
        <div class="employeeListDiv"></div>
        <div>
            <span class="mission_box_title"></span>
            <ul class="mission_box_buttons" mCode="{{=it.m_code}}">
                {{ if(+it.m_status == -1) { }}
                <li><a href="javascript:void(0);" class="modifyMissionBaseInfo">修改</a></li>
                {{ } if(+it.m_status == 1) { }}
                <li><a href="javascript:void(0);" class="selectEmployee">选择推荐人员</a></li>
                {{ } if(+it.m_status > 2) { }}
                <li><a href="javascript:void(0);" class="employeesList" el="{{=it.employees}}">更多</a></li>
                {{ } if(+it.m_status == 4) { }}
                <li><a href="javascript:void(0);" class="appraiseMission">评价</a></li>
                {{ } }}

            </ul>
        </div>
        <div class="appraiseBox hidden">
            <textarea class="appraiseBoxText" name="appraiseContent">请输入评价</textarea>
            <input type="button" name="saveAppraise" value="保存评价" />
        </div>
    </div>
</script>
<!-- 评论box模板 -->
<script id="comment_tmpl" type="text/x-dot-template">
    <div class="comment_box">
        <div><label class="comment_box_title">任务名称:</label><label class="comment_data_1">{{=it.c_target_name}}</label>
        </div>
        <div><label class="comment_box_title">任务评价:</label><p class="comment_data_2">{{=it.c_comment}}</p>
        </div>
    </div>
</script>
<!-- 创建新任务第一步模板 -->
<script id="new_mission_step1_tmpl" type="text/x-dot-template">
    <ul class="new_mission_box">
        <li>
            <h2>一句话描述您的任务:</h2>
            <input type="text" class="mission_name" name="mission_name" value="{{=it.m_name ? it.m_name : ''}}" />
        </li>
        <li>
            <label for="mission_end_time">选择您的任务结束时间:</label>
            <input type="text" class="mission_end_time" name="mission_end_time" value="{{=it.m_end_date ? it.m_end_date : ''}}" />
        </li>
        <li>
            <h3>将需求说的详细些:</h3>
            <textarea type="text" class="mission_desc" name="mission_desc">{{=it.m_desc ? it.m_desc : ''}}</textarea>
        </li>
        <!--
        <li>
            <label for="mission_budget">预算:</label>
            <input type="text" class="mission_budget" name="mission_budget" value="0" />元人民币
        </li>
        -->
        <li>
            <label>填写您需要的人员:</label>
        </li>
        <li>
            <div class="new_mission_box employee_select_list">
                <table class="table">
                    {{ for(var i = 0, l = it.length; i<l;i++) { var item = it[i]; }}
                        <tr>
                            <td class="employee_type"><span et="{{=item.o_code}}">{{=item.o_desc}}</span></td>
                            <td class="employee_num">
                                <a href="javascript:void(0);" class="decrease">减</a>
                                <input name="employee_num_input" class="employee_num_input" value="0" />
                                <a href="javascript:void(0);" class="increase">加</a>
                            </td>
                        </tr>
                    {{ } }}
                </table>
            </div>
        </li>
        <li>
            <input type="button" name="nextMissionStep" class="R" value="提交审核" />
        </li>
    </ul>
</script>
<!-- 创建新任务第二步模板 -->
<script id="new_mission_step2_tmpl" type="text/x-dot-template">
    <ul class="new_mission_box">
        <li>
            <h2>{{=it.m_name}}</h2>
        </li>
        <li>
            <span>{{=it.m_end_date}}</span>
        </li>
        <li>
            <p>{{=it.m_desc}}</p>
        </li>
        <li>
            <label>选择您需要的人员:</label>
        </li>
        <li>
            <div class="new_mission_box employee_select_list2">
                <table class="table">
                    {{ for(var i = 0, l = it.data.length; i<l;i++) { var item = it.data[i]; }}
                        <tr>
                            <td class="employee_type_select"><span>{{=item.employeeType}}({{=item.employeeNum}}):</span></td>
                            <td>
                                <ul class="employee_list_select" en="{{=item.employeeNum}}">
                                    {{ for(var j = 0, jl = it.data[i].employees.length; j < jl; j++) { var employee = item.employees[j]; }}
                                    <li>
                                        <input type="checkbox" name="{{=item.employeeTypeCode}}" uid="{{=employee.user_code}}" />
                                        <a href="javascript:void(0);" uid="{{=employee.user_code}}">{{=employee.user_name}}</a>
                                    </li>
                                    {{ } }}
                                </ul>
                            </td>
                        </tr>
                    {{ } }}
                </table>
            </div>
        </li>
        <li>
            <input type="button" name="nextMissionStep2" class="R" value="提交审核" mCode="{{=it.m_code}}" />
            <input type="button" name="deleteMission" class="R" value="删除任务" mCode="{{=it.m_code}}" />
        </li>
    </ul>
</script>

